<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    堆栈方法：push pop shift unshift； 通用方法：toString valueOf 拼接方法： concat join 构建方法： new Array() Array.from() Array.of() 删改方法：splice slice 排序方法： sort reverse 索引相关：indexOf lastIndexOf includes find findIndex 迭代方法： forEach map filter reduce reduceRight some every
    entries keys values
    <script>
        // match 在String.prototype.match();
        // exec 在RegExp.prototype.exec();
        var reg = new RegExp(/\d/g); //构造函数
        var reg = /\d/g; //字面量

        var str = 'fdsfasfasw3erwerhb1234';
        console.log(str.match(/\d/g));

        var str = 'vat,bat,sat,fat';
        var reg = /.at/;
        console.log(reg.exec(str));

        // charAt
        // charCodeAt
        // fromCharCode
        var str = '123';
        console.log(str.charAt(0));
        console.log(str.charCodeAt()); //字符对应的字符编码

        console.log(String.fromCharCode(49));

        for (var i = 0, res = ''; i < 26; i++) {
            res = String.fromCharCode(65 + i)
        }
        console.log(res);
        console.log(new Array(26).fill('').reduce((prev, cur, index) => {
            return prev + String.fromCharCode(65 + index)
        }))
    </script>
</body>

</html>